package com.ssy.lingxi.workflow.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 外部流程关联的会员角色
 * @author 万宁
 * @version 2.0.0
 * @date 2021-04-29
 */
@Entity
@Table(schema = "public", name = "wf_external_process_role", indexes = {@Index(name = "wf_external_process_role_role_id_idx", columnList = "roleId")})
public class ExternalProcessRole implements Serializable {
    private static final long serialVersionUID = -457989295348958404L;
    /**
     * 主键名称id
     */
    @Id
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="external_process_role_seq")
    @SequenceGenerator(sequenceName="wf_external_process_role_seq", name="external_process_role_seq",allocationSize = 1)
    private Long id;

    /**
     * 角色Id
     */
    @Column
    private Long roleId;

    /**
     * 角色名称
     */
    @Column(columnDefinition = "varchar(40)")
    private String roleName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
